package com.net.controller;

import com.net.entity.City;
import com.net.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController extends BaseController {

    @Autowired
    TestService testService;

    @RequestMapping("/hello")
    public String index() {
        List<City> allCity = this.testService.getAllCity();
        return allCity.toString();
    }
}
